@(message: String, f: Form[Orders])

@import helper._

@implicitFieldConstructor = @{ FieldConstructor(simpleInput.f) } 

@main(message) {

  <h2>@message</h2>
  <fieldset style="width: 500px;">
    @helper.form(routes.OrderController.addOrder()) {
      @inputText(f("id"), '_label -> "Id", 'readonly -> "readonly")
      @inputText(f("orderDate"), '_label -> "Date")
      @inputText(f("customer.id"), '_label -> "ID Customer", 'readonly -> "readonly")
      @inputText(f("customer.firstName"), '_label -> "Firt Name", 'readonly -> "readonly")
      @inputText(f("customer.lastName"), '_label -> "Last Name", 'readonly -> "readonly")
      @inputText(f("product.id"), '_label -> "ID Product", 'readonly -> "readonly")
      @inputText(f("product.name"), '_label -> "Product", 'readonly -> "readonly")
      @inputText(f("total"), '_label -> "Total")
      <fieldset style="margin-top: 10px;">
          <input type="submit" value="Update" />
          <a href='@routes.OrderController.index()'>Cancel and go All Orders</a>
      </fieldset>
    }        
  </fieldset>
  
}

